package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Orders;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface OrdersService {
    //提交订单
    void save(Orders orders);
    //后端查询订单
    Page<Orders> findByPage(Long number, Integer pageNum, Integer pageSize, String beginTime, String endTime);

    //前端查询所有
    Page<Orders> findAll(Integer pageNum, Integer pageSize);
}
